package com.bci.pwtz.mysql.model;

import java.util.Date;

public class RandomCode {
    private Long id;

    private Long companyId;

    private Long companyRoleId;

    private String randomCode;

    private Date createTime;

    private Date validityTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getCompanyRoleId() {
        return companyRoleId;
    }

    public void setCompanyRoleId(Long companyRoleId) {
        this.companyRoleId = companyRoleId;
    }

    public String getRandomCode() {
        return randomCode;
    }

    public void setRandomCode(String randomCode) {
        this.randomCode = randomCode == null ? null : randomCode.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getValidityTime() {
        return validityTime;
    }

    public void setValidityTime(Date validityTime) {
        this.validityTime = validityTime;
    }

    /* (non-Javadoc)
     * Description: <br/> 
     *
     * @return 
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString()
    {
        return "RandomCode [id=" + id + ", companyId=" + companyId + ", companyRoleId=" + companyRoleId + ", randomCode=" + randomCode + ", createTime=" + createTime + ", validityTime=" + validityTime + "]";
    }
    
}